//告警信息
import 'package:json_annotation/json_annotation.dart';

part 'alarm.g.dart';

@JsonSerializable()
class Alarm {
  int alarm_type;
  int? vehicle_type;
  String? vehicle_id;
  int priority;
  int? direction;
  String? toast;
  int? time_display;
  String? voice;
  double? longitude;
  double? latitude;
  double? distance;
  Alarm(
      this.alarm_type,
      this.vehicle_type,
      this.vehicle_id,
      this.priority,
      this.direction,
      this.toast,
      this.time_display,
      this.voice,
      this.longitude,
      this.latitude,
      this.distance);
  factory Alarm.fromJson(Map<String, dynamic> json) => _$AlarmFromJson(json);
  Map<String, dynamic> toJson() => _$AlarmToJson(this);
}
